Skip to content

Meenashi - Takeover: Sanjeev30 sanjeev phase 2 financial summary data apis#1595

Merged
one-community merged 4 commits into
developmentfrom
sanjeev30-sanjeev_phase_2_financial_summary_data_apis
Aug 5, 2025
Merged

Meenashi - Takeover: Sanjeev30 sanjeev phase 2 financial summary data apis#1595
one-community merged 4 commits into
developmentfrom
sanjeev30-sanjeev_phase_2_financial_summary_data_apis

Conversation

@jeyanthi-sm
Copy link
Copy Markdown
Contributor

@jeyanthi-sm jeyanthi-sm commented Jul 25, 2025

Description

This PR continues the work originally started by @sanjeev30 in the sanjeev_phase_2_financial_summary_data_apis branch.

Summary of Changes:

Integrated Sanjeev’s original API work for the Phase 2 Financial Summary module.

Pulled and merged with the latest development branch.

Resolved merge conflicts in the following file:

src/startup/routes.js

Verified that protected functions remain unchanged.

Reason for Takeover:
Sanjeev was unavailable to complete the PR, so I have taken over to finalize, clean up, and prepare it for merge.

Related PRs

Main Changes Explained

  • Merged original feature branch with latest development
  • Fixed merge conflict in routes.js
  • Ensured backend API structure is preserved
  • Re-tested endpoints

How to Test

Pull this backend branch

Run npm install

Run npm run dev to start the server locally

Execute the api/login endpoint using the POST method to retrieve an authentication token.

Use this token as the API key for all subsequent API requests.

Verified the responses of the listed APIs
Total Project Cost
GET /api/financials/project/{projectId}/total-cost

Project Cost Breakdown
GET /api/financials/project/{projectId}/costs

Month-over-Month Change (Current vs. Previous)
GET /api/financials/project/{projectId}/mom-changes

Projects by Date Range
GET /api/financials/projects?startDate=2025-04-01&endDate=2025-06-01

Projects by Type
GET /api/financials/projects?projectType=commercial

Screenshots or Videos

apiLogin
TotalCost
costs
momChanges
projectsByDateRange
projectsByCategory

Notes

Related PRS (if any):

@jeyanthi-sm jeyanthi-sm changed the title Takeover: Sanjeev) Sanjeev30 sanjeev phase 2 financial summary data apis Takeover: Sanjeev30 sanjeev phase 2 financial summary data apis Jul 25, 2025
@jeyanthi-sm jeyanthi-sm changed the title Takeover: Sanjeev30 sanjeev phase 2 financial summary data apis Meena Takeover: Sanjeev30 sanjeev phase 2 financial summary data apis Jul 25, 2025
@one-community one-community added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Jul 28, 2025
Copy link
Copy Markdown
Contributor

@ShravyaKudlu ShravyaKudlu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was able to review these changes successfully
Screenshot from 2025-07-30 14-46-46
Screenshot from 2025-07-30 14-45-33
Screenshot from 2025-07-30 14-47-51

Copy link
Copy Markdown
Contributor

@ManviKishore ManviKishore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the APIs working as expected.

Screenshot 2025-07-31 001026 Screenshot 2025-07-31 000938 Screenshot 2025-07-31 000524

@suparshwa31
Copy link
Copy Markdown
Contributor

I tested all the changes and everything is working as expected.
Screenshot 2025-07-31 at 12 49 35
Screenshot 2025-07-31 at 12 49 45
Screenshot 2025-07-31 at 12 49 57
Screenshot 2025-07-31 at 12 50 09
Screenshot 2025-07-31 at 12 50 21

Copy link
Copy Markdown
Contributor

@suparshwa31 suparshwa31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All endpoints working.

Copy link
Copy Markdown
Contributor

@csk731 csk731 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed this PR by running this branch locally. All changes look fine and APIs are giving expected responses.

Screenshot 2025-07-31 at 5 18 45 PM Screenshot 2025-07-31 at 5 19 44 PM Screenshot 2025-07-31 at 5 20 10 PM Screenshot 2025-07-31 at 5 20 25 PM Screenshot 2025-07-31 at 5 20 49 PM

…GNRest into sanjeev30-sanjeev_phase_2_financial_summary_data_apis
Copy link
Copy Markdown
Contributor

@sohailuddinsyed sohailuddinsyed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the given API endpoints are working as expected

  • Total Project Cost
    GET /api/financials/project/{projectId}/total-cost
Screenshot 2025-08-02 144454
  • Project Cost Breakdown
    GET /api/financials/project/{projectId}/costs
Screenshot 2025-08-02 145058
  • Month-over-Month Change (Current vs. Previous)
    GET /api/financials/project/{projectId}/mom-changes
Screenshot 2025-08-02 144516
  • Projects by Date Range
    GET /api/financials/projects?startDate=2025-04-01&endDate=2025-08-01
Screenshot 2025-08-02 144558
  • Projects by Type
    GET /api/financials/projects?projectType=commercial
Screenshot 2025-08-02 144628

@donaldmucharla
Copy link
Copy Markdown

image (2) image (1) ![image](https://github.com/user-attachments/assets/e940e219-2b32-42d2-a1e1-6a4762931691) image All endpoints tested using API Key in Authorization header. Token included in all requests and verified successfully.

@one-community one-community merged commit 63f1b77 into development Aug 5, 2025
1 check passed
@one-community one-community changed the title Meena Takeover: Sanjeev30 sanjeev phase 2 financial summary data apis Meenashi - Takeover: Sanjeev30 sanjeev phase 2 financial summary data apis Aug 5, 2025
@donaldmucharla
Copy link
Copy Markdown

Screenshot 2025-08-07 154644 Screenshot 2025-08-07 154824 Screenshot 2025-08-07 154955 Screenshot 2025-08-07 155129 Screenshot 2025-08-07 155615

all endpoints working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants